from Hogwarts.Homeworks.hw0718.api.wework import WeWork


class ApiDepartment(WeWork):

    def query(self):
        data = {
            "method": 'get',
            "url": f"{self.base_url}/department/list",
            "params": {"access_token": self.token},
        }
        return self.do_request(data)
